
package org.codebase.spring.framework.soundsystem;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CDPlayer implements MediaPlayer {

    @Autowired
    private CompactDisc disc;
	
	/*@Autowired
	public CDPlayer(CompactDisc disc){
		this.disc = disc;
	}*/
	
	/*@Autowired
	public void setDisc(CompactDisc disc) {
		this.disc = disc;
	}*/


    @Override
    public void play() {
        disc.play();
    }

}
